package com.mrjoew.weekend.entities.po;

import com.mrjoew.weekend.entities.BasePO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.SQLDelete;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Christopher Jones
 * @ClassName Account
 * @explain 用户账号
 * @date 2020/6/17 0017 14:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@SQLDelete(sql = "UPDATE `sys_account` SET deleted = 1 WHERE id = ?")
@Table(name = "sys_account")
@Entity
public class SysAccountPO extends BasePO {

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    private String password;
}
